package com.bigmi.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bigmi.model.article.Dto.ArticleDto;
import com.bigmi.model.article.Dto.ArticleHomeDto;
import com.bigmi.model.article.pojo.ApArticle;
import com.bigmi.model.common.dtos.ResponseResult;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface    ArticleService extends IService<ApArticle> {
    /**
     *
     * @param articleHomeDto
     * @param type type = 1加载更多 type = 2加载最新
     * @return
     */
    public ResponseResult articleList(ArticleHomeDto articleHomeDto, Short type);

    /**
     * 保存app端相关文章
     * @param articleDto
     * @return
     */
    public ResponseResult saveArticle( ArticleDto articleDto);

    /**
     * 修改app端文章上下架状态
     * @return
     */
    public ResponseResult upAndDown(Long articleId);

    /**
     * 删除app端文章
     * @param articleId
     * @return
     */
    public ResponseResult del(Long articleId);
}
